#include <stdio.h>
#include <string.h>
#include <math.h>
#define debug true
typedef struct
{
    double x, y;
}Tong;    
Tong ca, cb;

double b, w, c;
double ta , tb, end, dx, dy;

void deal()
{
    int time, order;
    ta = b;
    tb = w+c;
    end = b/w;
    ca.x = b;      ca.y = 0;
    cb.x = 0;      cb.y = w;

    time = 0;
//  order = 1;
    while (1)
    {
            if ( fabs(cb.x/cb.y-end)<0.00001 && fabs(ca.x/ca.y-end)<0.00001 ) break;
            
            dx = ca.x*c/(ta);
          //  dy = ca.y*c/(ca.x+ca.y);
            dy = c-dx;
            ca.x -= dx;  ca.y -= dy;
            cb.x += dx;  cb.y += dy;  

            dx = cb.x*c/(tb);
         //   dy = cb.y*c/(cb.x+cb.y);
            dy = c-dx;
            cb.x -= dx;  cb.y -= dy;
            ca.x += dx;  ca.y += dy;
        
        //    if ( fabs(ca.x/ca.y-end)<0.00001 ) break;
        //    if ( fabs(cb.x/cb.y-end)<0.00001 ) break;
          
        
        //order = order ^ 1;  
        
        time ++;
    }    
    printf("%d\n", time);
    
}   

bool in()
{
    int B,W,C;
    scanf("%d%d%d", &B, &W, &C);
    if (B==0 && W==0 && C==0) return false;
    b = B*16;
    w = W*16;
    c = C;
    return true;
}    
int main()
{
    while (in())
    {
        deal();        
    }        
    return 0;
}    

